package com.javaclimb.accounting.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @version jdk1.8
 * @date 2022/12/27 11:44
 * @function:
 * 充值提现实体
 */
public class Trade {
    private Long onId; // 充值提现记录id
    private Long onCardId;//银行卡id
    private Long onAccId;//电子账户id
    private String onType;//充值/提现（类型）
    private BigDecimal onMoney;//交易金额
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onTime;//交易时间
    private BigDecimal onBalance; //账户余额

    public Long getOnId() {
        return onId;
    }

    public void setOnId(Long onId) {
        this.onId = onId;
    }

    public Long getOnCardId() {
        return onCardId;
    }

    public void setOnCardId(Long onCardId) {
        this.onCardId = onCardId;
    }

    public Long getOnAccId() {
        return onAccId;
    }

    public void setOnAccId(Long onAccId) {
        this.onAccId = onAccId;
    }

    public String getOnType() {
        return onType;
    }

    public void setOnType(String onType) {
        this.onType = onType;
    }

    public BigDecimal getOnMoney() {
        return onMoney;
    }

    public void setOnMoney(BigDecimal onMoney) {
        this.onMoney = onMoney;
    }

    public Date getOnTime() {
        return onTime;
    }

    public void setOnTime(Date onTime) {
        this.onTime = onTime;
    }

    public BigDecimal getOnBalance() {
        return onBalance;
    }

    public void setOnBalance(BigDecimal onBalance) {
        this.onBalance = onBalance;
    }
}
